package com.kk.hellospringbootstarter.config;

import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @program: springboot-autoconfig
 * @description:
 * @author: Mr.Dai
 * @create: 2020-03-02 16:31
 **/
@ConfigurationProperties("dgw")
@AutoConfigureOrder(1)
public class PersonProperties {

    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "PersonProperties{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
